package com.cash.channel.svc.service.api;

import com.cash.channel.api.constant.Constant;
import com.cash.channel.api.exception.CashChannelException;
import com.cash.channel.api.model.ApiRequestModel;
import com.cash.channel.api.model.ApiResponseModel;
import com.cash.channel.api.model.response.BankCardBindCaptchaResponse;
import com.cash.channel.api.service.BaseApi;
import com.cash.channel.svc.service.base.BankCardBindCaptcha;
import com.cash.channel.svc.util.ServiceUtils;
import org.springframework.stereotype.Service;

@Service("bankCardBindCaptcha")
public class CJH000006 implements BaseApi<BankCardBindCaptchaResponse> {

    @Override
    public ApiResponseModel<BankCardBindCaptchaResponse> doProcess(ApiRequestModel apiRequestModel) throws CashChannelException {
        BankCardBindCaptcha bankCardBindCaptcha = ServiceUtils.getBean(apiRequestModel.getInterfaceType()+ Constant.SERVICE.绑卡验证码, BankCardBindCaptcha.class);
        return bankCardBindCaptcha.doBankCardBindCaptcha(apiRequestModel);
    }

}
